﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="view_sub_rating.ascx.cs" Inherits="vboard_component_board_template_default_view_sub_rating" EnableViewState="false" %>

<div class="view_sub_rating">

	<div class="CommonBox">

		<div class="Header"><%= GetLocalResourceObject("Rating_Title").ToString()%></div>
		<div class="Content">
			<asp:UpdatePanel ID="RatingUpdatePanel" runat="server" UpdateMode="Conditional">
				<ContentTemplate>
					<div class="Info">
						<asp:Image ID="RatingImage" runat="server" ImageAlign="Top" AlternateText="Rating" />
						<asp:Literal ID="RatingDetailLiteral" runat="server" />
					</div>
					<asp:Panel ID="RatingFormPanel" runat="server">
						<asp:Label ID="RatingLabel" runat="server" Text="<%$ Resources:RatingLabel %>" CssClass="Label" />
						<asp:Panel ID="StarsPanel" runat="server" CssClass="DropDown">
							<div class="Option"><asp:ImageButton ID="Rating_0" runat="server" ImageAlign="Top"
								ImageUrl="<%$ Resources:Rating_0_Small %>" AlternateText="0" CommandArgument="0"
								OnClick="RatingButton_Click" /></div>
							<div class="Option"><asp:ImageButton ID="Rating_1" runat="server" ImageAlign="Top"
								ImageUrl="<%$ Resources:Rating_1_Small %>" AlternateText="1" CommandArgument="1"
								OnClick="RatingButton_Click" /></div>
							<div class="Option"><asp:ImageButton ID="Rating_2" runat="server" ImageAlign="Top"
								ImageUrl="<%$ Resources:Rating_2_Small %>" AlternateText="2" CommandArgument="2"
								OnClick="RatingButton_Click" /></div>
							<div class="Option"><asp:ImageButton ID="Rating_3" runat="server" ImageAlign="Top"
								ImageUrl="<%$ Resources:Rating_3_Small %>" AlternateText="3" CommandArgument="3"
								OnClick="RatingButton_Click" /></div>
							<div class="Option"><asp:ImageButton ID="Rating_4" runat="server" ImageAlign="Top"
								ImageUrl="<%$ Resources:Rating_4_Small %>" AlternateText="4" CommandArgument="4"
								OnClick="RatingButton_Click" /></div>
							<div class="Option"><asp:ImageButton ID="Rating_5" runat="server" ImageAlign="Top"
								ImageUrl="<%$ Resources:Rating_5_Small %>" AlternateText="5" CommandArgument="5"
								OnClick="RatingButton_Click" /></div>
							<div class="Option"><asp:ImageButton ID="Rating_6" runat="server" ImageAlign="Top"
								ImageUrl="<%$ Resources:Rating_6_Small %>" AlternateText="6" CommandArgument="6"
								OnClick="RatingButton_Click" /></div>
							<div class="Option"><asp:ImageButton ID="Rating_7" runat="server" ImageAlign="Top"
								ImageUrl="<%$ Resources:Rating_7_Small %>" AlternateText="7" CommandArgument="7"
								OnClick="RatingButton_Click" /></div>
							<div class="Option"><asp:ImageButton ID="Rating_8" runat="server" ImageAlign="Top"
								ImageUrl="<%$ Resources:Rating_8_Small %>" AlternateText="8" CommandArgument="8"
								OnClick="RatingButton_Click" /></div>
							<div class="Option"><asp:ImageButton ID="Rating_9" runat="server" ImageAlign="Top"
								ImageUrl="<%$ Resources:Rating_9_Small %>" AlternateText="9" CommandArgument="9"
								OnClick="RatingButton_Click" /></div>
							<div class="Option"><asp:ImageButton ID="Rating_10" runat="server" ImageAlign="Top"
								ImageUrl="<%$ Resources:Rating_10_Small %>" AlternateText="10" CommandArgument="10"
								OnClick="RatingButton_Click" /></div>
							<div class="Clear"></div>
						</asp:Panel>
						<ajaxToolkit:DropDownExtender runat="server" ID="RatingDropDownExtender" TargetControlID="RatingLabel" DropDownControlID="StarsPanel" />
					</asp:Panel>
					<asp:Repeater ID="RatingUserRepeater" runat="server">
						<ItemTemplate><div class="Users"><%# String.Format("{0}({1})", Eval("UserName"), Eval("Point")) %></div></ItemTemplate>
					</asp:Repeater>
					<asp:UpdateProgress ID="RatingUpdatePanelProgress" runat="server" AssociatedUpdatePanelID="RatingUpdatePanel" DisplayAfter="0">
						<ProgressTemplate>
							<div class="VWebGlobal_UpdateProgressPanel"><asp:Image ID="LoaderImage1" runat="server" ImageUrl="~/vboard/common/image/loader.gif" /> <%= VUtility.GetVWebGlobalResource("General_UpdateProgressMessage") %></div>
						</ProgressTemplate>
					</asp:UpdateProgress>
				</ContentTemplate>
			</asp:UpdatePanel>
			<div class="Clear"></div>
		</div>

	</div>

</div>